package ovm.gui.actions.menu.other;

import com.vaadin.ui.MenuBar;
import ovm.gui.actions.menu.AbstractMenuAction;
import ovm.gui.views.news.NewsEditorView;

import static ovm.application.MainApplication.*;

/**
 * Created by IntelliJ IDEA.
 * User: Jokser
 * Date: 07.06.12
 * Time: 19:11
 * To change this template use File | Settings | File Templates.
 */

public class NewsAddAction extends AbstractMenuAction {

    @Override
    public void menuSelected(MenuBar.MenuItem selectedItem) {
        navigator.setMainView(new NewsEditorView(null));
    }

}
